home *** CD-ROM | disk | FTP | other *** search
- Path: news.bridge.net!news
- From: David Byrden <100101.2547@compuserve.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Strongly Typed Function Pointers
- Date: 25 Jan 1996 03:51:13 GMT
- Organization: self-employed
- Message-ID: <4e6unh$ttk@news.bridge.net>
- References: <erik-2401961956090001@annex-dialup02.med.cornell.edu>
- NNTP-Posting-Host: ppp-mia3-116.bridge.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
-
-
- >> I have a program that I'm porting from C to C++ which uses void
- >> (*)(void*) function pointers to call many differant "types" of
- >> functions (ones with differant argument lists). This of course works
- >> in C but I'm dying in C++ with compiler errors (becuase the pointer
- >> isn't of the right type).
-
- Well, you can cast them, of course, if you want to port the program
- unchanged. Ideally, you would prefer to redesign, as it sounds like a
- fragile program.
-
-
- David
-
-
-